<template>
  <zl-crud table-key="SCM_receive" :option="option" :btn-list="btnList" :operation="operations"></zl-crud>
</template>

<script lang="ts" setup>
import { reactive, ref } from 'vue'
import { BtnOption, OperationOption, ZlCrud, BtnLocal } from '@zl-crud/components'
import option from './list.js'
import '@zl-crud/components/crud/style/index.ts'

const uploadInvoiceRef = ref()

const btnList: BtnOption[] = [
  { btnName: '确认验收', btnIcon: 'icon-a-hetong8', btnStyle: 'success', btnLocal: BtnLocal.footer, btnKey: '' },
  {
    btnName: '',
    btnIcon: 'icon-a-yunshangchuan1',
    btnStyle: 'primary',
    btnLocal: BtnLocal.menu,
    btnClick: () => {
      uploadInvoiceRef.value.show()
    },
  },
  { btnName: '', btnIcon: 'icon-dayin-01', btnStyle: 'primary', btnLocal: BtnLocal.menu, btnKey: '' },
]

const operations = reactive<OperationOption[]>([])
</script>

<style scoped></style>

x
